<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订餐系统-后台管理</title>
    <link rel="stylesheet" href="/public/admin/assets/css/public.css">
    <link rel="stylesheet" href="/public/admin/assets/css/add.css">
    <style>
        .pagin-list a {
            display: inline-block;
            background-color: rgba(153,255,255,0.6);
            border: 1px solid skyblue;
            color: black;
        }
    </style>
</head>
<body>
    <header class="clearfix owf">
        <div class="logo pull-left">
            <a href="/" class="owf"><img src="/public/admin/assets/images/logo.png" alt="点餐系统" class="pull-left"> <span class="logo-text pull-left">点餐系统-后台管理</span></a>
        </div>
        <div class="user-info pull-right">
            <table>
                <tr>
                    <td><div class="welcom-text">你好，欢迎您 {$Think.session.admin.username}</div></td>
                    <td><div class="user-icon">
                        <div class="logo-img"></div>
                    </div></td>
                    <td><span class="logout">退出</span></td>
                </tr>
            </table>
        </div>
    </header>
    <div class="content">
        <div class="pull-left silde-bar">
            <br>
            <br>
            <div class="left-menu-item ">
                <div class="top-radius"></div>
                <div class="center-icon">
                    <i class="iconfont">&#xe623;</i>
                    <h3>订单管理</h3>
                </div>
                <div class="bottom-radius"></div>
            </div>
            <div class="left-menu-item left-menu-active">
                <div class="top-radius"></div>
                <div class="center-icon">
                    <i class="iconfont">&#xe623;</i>
                    <h3>商品信息维护</h3>
                </div>
                <div class="bottom-radius"></div>
            </div>
            <div class="left-menu-item">
                <div class="top-radius"></div>
                <div class="center-icon">
                    <i class="iconfont">&#xe623;</i>
                    <h3>支付二维码</h3>
                </div>
                <div class="bottom-radius"></div>
            </div>
        </div>
        <div class="content-main">
            <div class="page-title">
                <h1>商品信息添加</h1>
            </div>
            <form action="{:U('/admin/product/editData')}" method="post" enctype="multipart/form-data">
                <ul>
                    <li>
                        <label><span>*</span>菜品名称:</label>
                        <input type="text" name="foodname" value="{$result.foodname}">
                    </li>
                    <li>
                        <label><span>*</span>菜品简介:</label>
                        <input type="text" name="foodconstruct" value="{$result.foodconstruct}">
                    </li>
                    <li>
                        <label><span>*</span>菜品价格:</label>
                        <input type="text" name="foodprice" value="{$result.foodprice}">
                    </li>
                    <li>
                        <label><span>*</span>菜品图片:</label>
                        <input type="file" name='file'>
                        <input type="hidden" name="id" value="{$result.id}">
                    </li>
                    <li>
                        <input type="submit" value="保存">
                    </li>
                    <li>
                        <a href="{:U('/admin/product/index')}">返回</a>
                    </li>
                </ul>
            </form>
        </div>
    </div>
</body>
<script src="/public/admin/assets/js/jquery.min.js"></script>
<script>
    $(function() {
        $('#importOut').click(function(){
            window.location.href = "{:U('/admin/product/importout')}"
        })
        $('.logout').click(function(){
            window.location.href = "{:U('/admin/public/logout')}"
        })
        $('#add').click(function(){
            window.location.href = "{:U('/admin/product/add')}"
        })
    })

</script>
</html>